package com.bdqn.service.impl;

import com.bdqn.mapper.UserMapper;
import com.bdqn.pojo.BackendUser;
import com.bdqn.pojo.User;
import com.bdqn.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("userService")
@Transactional
public class UserServiceimpl implements UserService {

    @Autowired
    public UserMapper userMapper;

    @Override
    @Transactional(readOnly = true)
    public User devlogin(User user) {
        return userMapper.devlogin(user);
    }

    @Override
    @Transactional(readOnly = true)
    public BackendUser backUser(BackendUser backendUser) {
        return userMapper.backUser(backendUser);
    }


}
